package com.dq.Week1.day04.arr;

public class Demo07 {
    public static void main(String[] args) {
        int[] arr1 = {1,2,3,4,5};
        int[] arr2 = new int[5];
        System.out.println("arr2未赋值之前：");
        for (int i = 0; i < arr2.length; i++) {

            System.out.print(arr2[i]);
        }
        arr2 = ArrUtils.copyIntArr(arr1,arr2);
        System.out.println();
        System.out.println("arr2赋值之后：");
        for (int i = 0; i < arr2.length; i++) {

            System.out.print(arr2[i]);
        }
    }
}
